home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C++ / Applications / Argus TE 2.0 / TE Main / MainBalloons.r < prev   
Encoding:
Text File  |  1995-06-23  |  8.4 KB  |  348 lines  |  [TEXT/KAHL]

  1. /**********************************************************************
  2.  
  3.     MainBalloons.r
  4.  
  5. ***********************************************************************/
  6.  
  7. /* THINK Rez resource format */
  8. #include <Types.r>
  9. #include <BalloonTypes.r>
  10.  
  11. resource 'hmnu' (400, "Apple", purgeable) {
  12. /* header component */
  13.   HelpMgrVersion,    /* version of Help Manager */
  14.   hmDefaultOptions,  /* options */
  15.   0,                 /* balloon definition function */
  16.   0,                 /* variation code */
  17.   
  18. /* missing-items component */
  19.   HMSkipItem {
  20.     /* no missing items, so skip to menu-title component */
  21.     },
  22.  
  23. /* BEGIN */ {
  24.  
  25. /* menu-title component */
  26.   HMSkipItem {
  27.     /* Apple menu has default help balloons */
  28.     },
  29.     
  30. /* first menu-item component: About */
  31.   HMStringItem {
  32.     /* enabled */
  33.     "Displays information about this application.",
  34.     /* dimmed by application */
  35.     "",
  36.     /* checked */
  37.     "",
  38.     /* marked */
  39.     "",
  40.     },
  41.     
  42. /* END */ }
  43. };
  44.  
  45. resource 'hmnu' (401, "File", purgeable) {
  46. /* header component */
  47.   HelpMgrVersion,    /* version of Help Manager */
  48.   hmDefaultOptions,  /* options */
  49.   0,                 /* balloon definition function */
  50.   0,                 /* variation code */
  51.   
  52. /* missing-items component */
  53.   HMSkipItem {
  54.     /* no missing items, so skip to menu-title component */
  55.     },
  56.  
  57. /* BEGIN */ {
  58.  
  59. /* menu-title component */
  60.   HMStringItem {
  61.     /* enabled */
  62.     "File menu\n\nUse this menu to open documents or quit "
  63.     "this application.",
  64.     /* dimmed by application */
  65.     "",
  66.     /* dimmed by system (alerts or modal dialogs) */
  67.     "File menu\n\nUse this menu to open documents or quit "
  68.     "this application. Not available because there is a dialog box "
  69.     "on the screen.",
  70.     /* all items dimmed by system */
  71.     "This item is not available because there is a dialog "
  72.     "box on the screen.",
  73.     },
  74.     
  75. /* first menu-item component: New */
  76.   HMStringItem {
  77.     /* enabled */
  78.     "Creates new document window.",
  79.     /* dimmed by application */
  80.     "",
  81.     /* checked */
  82.     "",
  83.     /* marked */
  84.     "",
  85.     },
  86.  
  87. /* second menu-item component: Open */
  88.   HMStringItem {
  89.     /* enabled */
  90.     "Opens a text file in a new document window.",
  91.     /* dimmed by application */
  92.     "",
  93.     /* checked */
  94.     "",
  95.     /* marked */
  96.     "",
  97.     },
  98.  
  99. /* third menu-item component: Close */
  100.   HMStringItem {
  101.     /* enabled */
  102.     "Closes current document window.",
  103.     /* dimmed by application */
  104.     "Closes current document window. Not available now "
  105.     "because the application does not currently have an "
  106.     "open window.",
  107.     /* checked */
  108.     "",
  109.     /* marked */
  110.     "",
  111.     },
  112.  
  113. /* fourth menu-item component: Divider */
  114.   HMSkipItem {
  115.     /* no help balloons for divider lines */
  116.     },
  117.  
  118. /* fifth menu-item component: Save */
  119.   HMStringItem {
  120.     /* enabled */
  121.     "Saves text in current document window.",
  122.     /* dimmed by application */
  123.     "Saves text in current document window. Not available now "
  124.     "because the application does not currently have an "
  125.     "open window.",
  126.     /* checked */
  127.     "",
  128.     /* marked */
  129.     "",
  130.     },
  131.  
  132. /* sixth menu-item component: Save As */
  133.   HMStringItem {
  134.     /* enabled */
  135.     "Saves text in current document window.",
  136.     /* dimmed by application */
  137.     "Saves text in current document window. Not available now "
  138.     "because the application does not currently have an "
  139.     "open window.",
  140.     /* checked */
  141.     "",
  142.     /* marked */
  143.     "",
  144.     },
  145.  
  146. /* seventh menu-item component: Divider */
  147.   HMSkipItem {
  148.     /* no help balloons for divider lines */
  149.     },
  150.  
  151. /* eigth menu-item component: Page Setup */
  152.   HMStringItem {
  153.     /* enabled */
  154.     "Brings up standard Page Setup dialog.",
  155.     /* dimmed by application */
  156.     "",
  157.     /* checked */
  158.     "",
  159.     /* marked */
  160.     "",
  161.     },
  162.  
  163. /* ninth menu-item component: Print */
  164.   HMStringItem {
  165.     /* enabled */
  166.     "Prints text in current document window.",
  167.     /* dimmed by application */
  168.     "Prints text in current document window. Not available now "
  169.     "because the application does not currently have an "
  170.     "open window.",
  171.     /* checked */
  172.     "",
  173.     /* marked */
  174.     "",
  175.     },
  176.  
  177. /* tenth menu-item component: Divider */
  178.   HMSkipItem {
  179.     /* no help balloons for divider lines */
  180.     },
  181.  
  182. /* eleventh menu-item component: Quit */
  183.   HMStringItem {
  184.     /* enabled */
  185.     "Quits this application.",
  186.     /* dimmed by application */
  187.     "",
  188.     /* checked */
  189.     "",
  190.     /* marked */
  191.     "",
  192.     },
  193.     
  194. /* END */ }
  195. };
  196.  
  197. resource 'hmnu' (402, "Edit", purgeable) {
  198. /* header component */
  199.   HelpMgrVersion,    /* version of Help Manager */
  200.   hmDefaultOptions,  /* options */
  201.   0,                 /* balloon definition function */
  202.   0,                 /* variation code */
  203.   
  204. /* missing-items component */
  205.   HMSkipItem {
  206.     /* no missing items, so skip to menu-title component */
  207.     },
  208.  
  209. /* BEGIN */ {
  210.  
  211. /* menu-title component */
  212.   HMStringItem {
  213.     /* enabled */
  214.     "Edit menu\n\nUse this menu to manipulate text.",
  215.     /* dimmed by application */
  216.     "Edit menu\n\nUse this menu to manipulate text. "
  217.     "Not available because there is nothing to edit.",
  218.     /* dimmed by system (alerts or modal dialogs) */
  219.     "Edit menu\n\nUse this menu to manipulate text. "
  220.     "Not available because there is a dialog box on "
  221.     "the screen.",
  222.     /* all items dimmed by system */
  223.     "This item is not available because there is a dialog "
  224.     "box on the screen.",
  225.     },
  226.     
  227. /* first menu-item component: Undo */
  228.   HMStringItem {
  229.     /* enabled */
  230.     "Cancels your last edit.",
  231.     /* dimmed by application */
  232.     "Cancels your last edit. Not available because "
  233.     "application doesn't support this function.",
  234.     /* checked */
  235.     "",
  236.     /* marked */
  237.     "",
  238.     },
  239.     
  240. /* second menu-item component: Divider */
  241.   HMSkipItem {
  242.     /* no help balloons for divider lines */
  243.     },
  244.     
  245. /* third menu-item component: Cut */
  246.   HMStringItem {
  247.     /* enabled */
  248.     "Cuts selected text to the Clipboard.",
  249.     /* dimmed by application */
  250.     "Cuts selected text to the Clipboard. Not available now "
  251.     "because no text is selected.",
  252.     /* checked */
  253.     "",
  254.     /* marked */
  255.     "",
  256.     },
  257.  
  258. /* forth menu-item component: Copy */
  259.   HMStringItem {
  260.     /* enabled */
  261.     "Copies selected text to the Clipboard.",
  262.     /* dimmed by application */
  263.     "Copies selected text to the Clipboard. Not available now "
  264.     "because no text is selected.",
  265.     /* checked */
  266.     "",
  267.     /* marked */
  268.     "",
  269.     },
  270.  
  271. /* fifth menu-item component: Paste */
  272.   HMStringItem {
  273.     /* enabled */
  274.     "Inserts selected text from the Clipboard.",
  275.     /* dimmed by application */
  276.     "Inserts selected text from the Clipboard. Not available "
  277.     "now because there is no text currently in the Clipboard.",
  278.     /* checked */
  279.     "",
  280.     /* marked */
  281.     "",
  282.     },
  283.  
  284. /* sixth menu-item component: Clear */
  285.   HMStringItem {
  286.     /* enabled */
  287.     "Deletes selected text.",
  288.     /* dimmed by application */
  289.     "Deletes selected text. Not available now "
  290.     "because no text is selected.",
  291.     /* checked */
  292.     "",
  293.     /* marked */
  294.     "",
  295.     },
  296.  
  297. /* seventh menu-item component: Divider */
  298.   HMSkipItem {
  299.     /* no help balloons for divider lines */
  300.     },
  301.  
  302. /* eigth menu-item component: Select All */
  303.   HMStringItem {
  304.     /* enabled */
  305.     "Selects all text in current window.",
  306.     /* dimmed by application */
  307.     "Selects all text in current window. Not available now "
  308.     "because no text window is currently open.",
  309.     /* checked */
  310.     "",
  311.     /* marked */
  312.     "",
  313.     },
  314.  
  315. /* END */ }
  316. };
  317.  
  318. resource 'hmnu' (kHMHelpMenuID, "Help", purgeable)
  319. {
  320.     HelpMgrVersion, 0, 0, 0   /* header component             */
  321.     HMSkipItem{               /* missing-items component      */
  322.         /* no missing items, skip to first appended menu-item */
  323.         /* component                                          */
  324.         },
  325.     {   /* first menu-item component */
  326.         HMStringResItem{  /* use an 'STR#' for help messages  */
  327.         800, 1,  /* 'STR#' res ID, index when item is enabled */
  328.         800, 2,  /* 'STR#' res ID, index when item is dimmed  */
  329.         800, 3,  /* 'STR#' res ID, index when item is checked */
  330.         0, 0     /* item cannot be marked */
  331.         },
  332.     }
  333. };
  334.  
  335. resource 'STR#' (800, "Help menu item strings")
  336. {
  337.     {
  338.         /* array StringArray: six elements */
  339.         /* [1] enabled help command */
  340.         "Provides help for this application.";
  341.         /* [2] dimmed help command */
  342.         "Provides help for this application.";
  343.         /* [3] checked help command */
  344.         "Provides help for this application.";
  345.     }
  346. };
  347.  
  348. // End of File